package jike.demo11.pingxue.repository;

import jike.demo11.pingxue.entity.VirtualWalletEntity;

import java.math.BigDecimal;

public class VirtualWalletRepository {

    public VirtualWalletEntity getWalletEntity(Long walletId) {
        return null;
    }

    public BigDecimal getBalance(Long walletId) {
        return BigDecimal.valueOf(1000);
    }

    public void updateBalance(Long walletId, BigDecimal subtract) {
        // TODO 执行业务逻辑
    }
}
